package com.lxinet.jeesns.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by lzs on 2017/3/28.
 */
public class Myproperties extends Properties {
    private static Myproperties mp;


    private Myproperties(){
        try {
            this.load(Myproperties.class.getClassLoader().getResourceAsStream("redis.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Myproperties getInstance(){
        if(mp==null){
            mp=new Myproperties();
        }
        return mp;
    }
}
